﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_Popup.Master" CodeBehind="Vessel_Popup.aspx.vb" Inherits="I_PORT.Vessel_Popup" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
          <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label4" runat="server" SkinID="lbtxt" Text="Booking No. :"></asp:Label>&nbsp;</td>
             <td align="left"><asp:TextBox ID="txtBooking" runat="server"></asp:TextBox>
             
             </td>
        </tr>
        <tr>
             <td style="width:20%;" align="right"><asp:Label ID="lbVessel" runat="server" SkinID="lbtxt" Text="Vessel :"></asp:Label>&nbsp;</td>
             <td align="left"><asp:TextBox ID="txtVessel" runat="server"></asp:TextBox>
             
             </td>
        </tr>
         <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label2" runat="server" SkinID="lbtxt" Text="MAIN AGENT :"></asp:Label>&nbsp;</td>
             <td align="left"><asp:TextBox ID="txtAGENT" runat="server"></asp:TextBox>
             
             </td>
        </tr>
        <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label1" runat="server" SkinID="lbtxt" Text="LAY CAN :"></asp:Label>&nbsp;</td>
             <td align="left"><asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="TO"></asp:Label>&nbsp;<asp:TextBox ID="txtDateTo" runat="server" Width="80px"  onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDateTo" runat="server"  ImageUrl="~/Image/calendar.png" />
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd MMM yyyy" PopupButtonID="ImgDate"></asp:CalendarExtender>
                 <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDateTo" Format="dd MMM yyyy" PopupButtonID="ImgDateTo" ></asp:CalendarExtender>
             
             </td>
        </tr>
        <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label5" runat="server" SkinID="lbtxt" Text="PORT :"></asp:Label>&nbsp;</td>
             <td align="left">
                <asp:DropDownList ID="ddlPORT" runat="server" SkinID="ddl">
                   <asp:ListItem Value="A"><--ALL--></asp:ListItem>
                   <asp:ListItem Value="L">Liquid</asp:ListItem>
                   <asp:ListItem Value="B">Bulk</asp:ListItem>
                </asp:DropDownList><asp:Button ID="btnSearch" runat="server" Text="ค้นหา" CssClass="ButtonStyle" />
             </td>
        </tr>
        <tr>
           <td style="height:5px;"><img src="../Image/space.gif" /></td>
        </tr>
        <tr>
           <td align="center" colspan="2">
              <asp:UpdatePanel ID="updatePanelGrid" runat="server" UpdateMode="Conditional"><ContentTemplate>
              <asp:GridView ID="gridCustomer" runat="server" SkinID="gridblueNoPage"  DataKeyNames="Booking_no,Vehicle_Text,Date_From,Date_To"
                     AutoGenerateColumns="False">
                     <Columns> 
                         <asp:TemplateField HeaderText="BOOKING NO." ItemStyle-Wrap="false">
                               <ItemTemplate>
                                  <asp:LinkButton ID="LinkBooking" runat="server" Text="<%# Bind('Booking_no') %>" CommandArgument="<%# Container.DataItemIndex %>" CommandName="Edit"></asp:LinkButton>
                               </ItemTemplate>
                          </asp:TemplateField>
                         <asp:BoundField HeaderText="VESSEL" DataField="Vehicle_Text" />
                         <asp:BoundField HeaderText="LAY CAN/LAY DAY" />
                         <asp:BoundField HeaderText="MAIN AGENT" DataField="MAgent_name" />
                     </Columns>
                 </asp:GridView>
               </ContentTemplate></asp:UpdatePanel>
           </td>
        </tr>
        <tr>
           <td style="height:5px;"><img src="../Image/space.gif" /></td>
        </tr>
        <tr>
           <td align="center" colspan="2"><asp:Button ID="btnClose" runat="server" Text="Close" CssClass="ButtonStyle" /></td>
        </tr>
     </table>
</asp:Content>
